﻿#ifndef RIGHTDOCKWINDOW_H
#define RIGHTDOCKWINDOW_H

#include <QWidget>
#include <Don_tModify/stackwindow.h>
#include<QPropertyAnimation>
#include<QTimer>
#include<Don_tModify/mousefilter.h>
#include<QLabel>
#include<drone.h>
class RightDockWindow : public StackWindow
{
    Q_OBJECT
public:
    int sideButtonWidth,sideButtonHeight;
    QLabel *droneImage, *speedLabel, *v_directionLabel, *h_directionLabel, *xLabel, *yLabel, *zLabel;
    int width,height;
    QPushButton *rightSideButton;
    MouseFilter *mouseFilter;
   // MouseFilter *mouseFilter;
    void rightSideButtonClicked();
    void slotMoveWidget();
    void loadDrone(Drone *newDrone);
    void changeRightButtonStyle(bool isShowSide);
    explicit RightDockWindow(QWidget *parent,const Qt::AlignmentFlag &v_alignment,const Qt::AlignmentFlag &h_alignment,const QPoint &pos);
signals:

private:
    bool isShow;
    int indentation=200;//缩进量
    QPropertyAnimation *anim1;
    QPropertyAnimation *anim2;
};

#endif // RIGHTDOCKWINDOW_H
